# -*- coding: utf-8 -*-

import requests

def get_ip_info(ip):
    url = "http://ip.taobao.com/service/getIpInfo.php?ip=%s" % ip
    r = requests.get(url)
    rv = r.json()

    return rv

if __name__ == '__main__':
    print get_ip_info("221.233.193.156")
